#[derive(serde::Deserialize, serde::Serialize, Debug)]
pub struct Array<T> {
    pub items: Vec<T>,
}

#[derive(serde::Deserialize, serde::Serialize, Debug)]
pub struct SourceOrCategory<'a> {
    pub name: &'a str,
    pub id: &'a str,
    pub default: bool,
}

#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
pub enum VideoFormat {
    M3U8,
    MP4,
}

#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
pub struct Video {
    pub title: String,
    pub description: String,
    pub url: String, // 视频的网页的网址
    pub format: VideoFormat,
    pub src: String, // 视频的地址
    pub poster: String,
}
